package cn.com.dhcc.app.pub.core.service;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPSClient;

import cn.com.dhcc.app.pub.core.consts.KernelParam;
/**
 * ftpClient创建工厂
 * @author qiao
 * @2015-2-7 @下午2:37:16
 */
public class TurboFtpClientFactory{

	public static FTPClient createFtpClient(){
		if(KernelParam.encryptFtpUsessl){
			return new FTPSClient(true);
		}else{
			return new FTPClient();
		}
	} 
}
